<!--
 * @Author: zhayang
 * @LastEditors: zhayang 1063975710@qq.com
 * @Date: 2024-06-15 14:41:51
 * @LastEditTime: 2024-06-16 23:08:48
 * @Description: echarts卡片
-->
<template>
  <div
    class="container-card bg-#fff flex p-20 flex-col"
    :class="{ 'has-border': hasBorder }"
  >
    <div class="container-card-title flex justify-between full-w items-center">
      <div class="title-left font-600 text-#1C1F23 text-20 col-auto">
        {{ title }}
      </div>
      <div class="title-right col flex m-l-20 justify-end flex-wrap">
        <slot name="title-right"></slot>
      </div>
    </div>
    <div class="container-card-content m-t-20 full-w"><slot></slot></div>
  </div>
</template>

<script>
export default {
  components: {},
  props: {
    title: {
      type: String,
      default: ''
    },
    hasBorder: Boolean
  },
  data() {
    return {}
  },
  created() {
    //
  },
  methods: {
    //
  }
}
</script>

<style lang="scss" scoped>
.container-card {
  width: 100%;
  position: relative;
}
.has-border {
  border: 1px solid #e0e0e0;
}
</style>
